package com.cloud.common.shield.shields;

import com.cloud.common.shield.util.SensitiveDataUtil;

/**
 * 前3后4屏蔽器
 *
 * @author wangjian
 * @version 1.0.0
 * @create 2020年10月21日12:00
 * Life is so short,do something to make yourself happy,such as coding
 */
public class Begin3End4Shield extends AbstractShield {

    @Override
    public String doShield(Object fieldValue, String[] addition) {
        int length = fieldValue.toString().trim().length();
        return SensitiveDataUtil.customizeHide(fieldValue.toString(), 3, 4, length - 7);
    }

}
